package com.zjapl.web.action;

import com.opensymphony.xwork2.ActionSupport;
import com.zjapl.web.service.EmployeeService;
import com.zjapl.web.service.impl.EmployeeServiceImpl;

/** 
 * @author 作者:方武斌    E-mail: fangwb@zjapl.com
 * @version 创建时间：2013-1-15 下午1:21:43 
 * 类说明 
 */
public class DeleteEmployeeAction extends ActionSupport {
	private static final long serialVersionUID = 1L;
	private int emp_id;
	EmployeeService employeeServiceImpl=new EmployeeServiceImpl();


	/**  
	 * 获取emp_id  
	 * @return emp_id   
	 */
	public int getEmp_id() {
		return emp_id;
	}


	/**  
	 * 设置emp_id  
	 * @param emp_id emp_id  
	 */
	public void setEmp_id(int emp_id) {
		this.emp_id = emp_id;
	}


	public String execute(){	
		if(employeeServiceImpl.deleteEmployee(emp_id)){
		return SUCCESS;
		}
		return ERROR;
	}
	
    
}
